package com.test.jj.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class Aadvice {

    @Around("execution(* com.test.jj.controller..*(..))")
    public Object m(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        System.out.println("aaaaaaaaaaaaa");
        Object o =proceedingJoinPoint.proceed();
        System.out.println("bbbbbbbbbbbbbbba");
        return o;
    }
}
